package org.wzy.xmlg_backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("student")
public class Student {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer gender; // 1-男 2-女
    private Integer classId;
    private String avatar;  // 新增头像字段
    private String location; // 新增所在地字段
    private Integer status; // 1-在读 0-已离开

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}